#-*-coding:gb2312-*-
import cv2

import numpy as np
  
img=cv2.imread('images/a.jpg') #??????

#print(img[100,200]) #??100??,??200??????

#img[100] = [0,255,0] #??100?��?????
#img[:100] = [0,255,0] #100???????????
#img[100:] = [0,255,0] #100??????????

#img[:,200] = [255,0,0] #??200?��?????
#img[:,:200] = [0,255,0] #200???????????
#img[:,200:] = [0,255,0] #200??????????

print(img.shape) #??????????

for i in range(0,img.shape[0]): #??????????
    for j in range(0,img.shape[1]): #??????????
        if(i==j):
            img[i,j] = [0,255,0] #--Green value

cv2.imshow('src',img)

cv2.waitKey(0)
  
cv2.destroyAllWindows()
